package com.kaifamiao.singleton;

public class MoonTest {

	public static void main(String[] args) {
		
		System.out.println( Moon.name );
		
		System.out.println( "- - - - - - - - - - - -" );
		
		Moon m = Moon.getInstance();
		
		Moon n = Moon.getInstance();
		
		System.out.println( m == n ); // true
		
		m.welcome();
		n.welcome();

	}

}
